using com.ootii.Base;
using com.ootii.Data.Serializers;

using System.Collections;
using System.Collections.Generic;

using Unity.VisualScripting;



using UnityEngine;

namespace AluminumIngot
{
    /// <summary>
    /// 铝锭单位控制体积，在物体上
    /// </summary>
    public class AluminumIngotControlVolumeBase : BPAIBase
	{
		#region 字段与访问器


		#endregion

		#region 生命周期


		#endregion

		#region 基本方法

		protected void OnCollisionEnter(Collision collision)
		{
			
		}

		protected void OnCollisionExit(Collision collision)
		{
			
		}

		protected void OnTriggerEnter(Collider collider)
		{
			IAlumControlInterface control = collider.gameObject.GetComponent<IAlumControlInterface>();
			unitList.Add(control);
		}


		protected void OnTriggerExit(Collider collider)
		{
			IAlumControlInterface control = collider.gameObject.GetComponent<IAlumControlInterface>();
			unitList.Remove(control);
		}

		#endregion
	}

}
